import Vue from 'vue'
import App from './App.vue'



import Vant from 'vant';
import 'vant/lib/index.css';
import router from './router/router';
import store from './store'
import './assets/css/global.css'

Vue.config.productionTip = false


router.beforeEach((to, from, next) => {
  /* 路由发生变化修改页面title */
  if (to.meta.title) {
    document.title = to.meta.title
  }
  next()
})

Vue.use(Vant);
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')


